<?php
if(!extension_loaded('nmdb')) {
    dl('nmdb.' . PHP_SHLIB_SUFFIX);
}

$nmdb = nmdb_init();
echo $nmdb, "\n";
echo nmdb_add_tcp_server($nmdb, "127.0.0.1", -1), "\n";

//echo nmdb_set($nmdb, "test1", 123), "\n";
//echo nmdb_set($nmdb, "test2", 456), "\n";
//echo nmdb_set($nmdb, "test3", 789), "\n";

echo nmdb_get($nmdb, "test1"), "\n";
echo nmdb_get($nmdb, "test2"), "\n";
echo nmdb_get($nmdb, "test3"), "\n";

nmdb_free($nmdb);


